package com.gtp.mq.demo;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

//issue fix:默认只加载Application所在包及其子包下的内容
@SpringBootApplication
@EnableRabbit
public class RabbitMain extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(RabbitMain.class, args);
	}

}
